import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';

export async function userList(data) {
  return requestClient.post('/user/user/system/list', data);
}

export async function add(data) {
  return requestClient.post('/user/user/system/add', data);
}

export async function edit(data) {
  return requestClient.post('/user/user/system/edit', data);
}

export async function deleteId(data) {
  return requestClient.post('/user/user/system/delete', data);
}

export async function getUserById(data) {
  return requestClient.post('/user/user/system/getUserById', data);
}

// 获取登录用户信息
export async function getUserSimpleInfo() {
  return requestClient.post('/user/user/system/getUserSimpleInfo');
}

export async function resetUserPassword(data) {
  return requestClient.post('/user/user/system/resetPassword', data);
}